import { createRouter, createWebHashHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";
import indexPage from "@/pages/index.vue";
import listPage from "@/pages/list.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "indexPage",
    component: indexPage,
  },
  {
    path: "/ListPage",
    name: "ListPage",
    component: listPage,
  }
  // {
  //   path: "/404",
  //   name: "/404",
  //   component: () => import("@/pages/noFound.vue"),
  // },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;